package com.atguigu.service;

import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;
@AiService(wiringMode = AiServiceWiringMode.EXPLICIT , //使用的大模型 自己指定
        chatModel = "openAiChatModel" ,
        streamingChatModel = "openAiStreamingChatModel"
)
public interface OpenAiService {
    String chat(String msg);
    Flux<String> stream(String msg);
//    String moderation (String msg);
}


